﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace SpellChecker.Tests
{
  [TestFixture]
  public class TestSpellCheckerTildeConformity
  {
    [Test]
    public void CorrectWord()
    {
      var result = SpellChecker.HasSpellingErrors("Ihr Ihre Ihres");
      Assert.That(result, Is.True);
    }

    [Test]
    public void IncorrectWord()
    {
      var result = SpellChecker.HasSpellingErrors("Ihr Ihre Ihred");
      Assert.That(result, Is.False);
    }

    [Test]
    public void TwoCorrectWords()
    {
      var result = SpellChecker.HasSpellingErrors("Ihres Hauses");
      Assert.That(result, Is.False);
    }

    [Test]
    public void DoubleTilde()
    {
      var result = SpellChecker.HasSpellingErrors("Haushaus");
      Assert.That(result, Is.False);
    }
  }
}
